* {
    padding: 0;
    margin: 0;
}

body {
    width: 100%;
    height: 100vh;
}

.wrapper {
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 192, 203, .5);
    background-size: cover;
    position: relative;
    z-index: -1;
}

.wrapper .cube {
    position: absolute;
    /* 使cube居中 */
    top: calc(50% - 200px);
    left: calc(50% - 200px);
    width: 400px;
    height: 400px;
    /* 定义3d渲染环境 */
    transform-style: preserve-3d;
    /* 定义旋转初始值，空间位置（x,y,z） */
    transform: rotateX(-30deg) rotateY(30deg) rotateZ(0deg) translate3d(0px, 0px, 0px);
}

.wrapper>.cube>span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: 5px solid rgb(255, 173, 186);
    /* 禁止用户选择 */
    user-select: none;
}

/* 做立方体 */

.wrapper>.cube>span:nth-child(1) {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translate3d(0px, 0px, 0px);
}

.wrapper>.cube>span:nth-child(2) {
    transform: rotateX(90deg) rotateY(0deg) rotateZ(0deg) translate3d(0px, -200px, 202px);
}

.wrapper>.cube>span:nth-child(3) {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translate3d(0px, 0px, -400px);
}

.wrapper>.cube>span:nth-child(4) {
    transform: rotateX(90deg) rotateY(0deg) rotateZ(0deg) translate3d(0px, -200px, -200px)
}

.wrapper>.cube>span:nth-child(5) {
    transform: rotateX(0deg) rotateY(90deg) rotateZ(0deg) translate3d(200px, 0px, 200px)
}

.wrapper>.cube>span:nth-child(6) {
    transform: rotateX(0deg) rotateY(90deg) rotateZ(0deg) translate3d(200px, 0px, -200px)
}

.wrapper>.cube>span>img {
    width: 100%;
    height: 100%;
}